package com.example.stu.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 军大
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "student_info")
public class Student implements Serializable {
      @TableId(type = IdType.AUTO)
      private Integer id;
      private Integer stuId;
      private String stuPwd;
      private String stuName;
      private String stuIdCard;
      private String stuMail;
      private String stuPhone;
      @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
      private Date stuInSchool;
      private String stuDormitory;
      private Boolean stuOneCard;
      private Boolean stuBedding;
      private Boolean stuTrainUniform;
      private String majorId;
      private String majorName;
      private Boolean delFlag;
}
